FROM alpine-jdk8

WORKDIR /data

ENV LANG=C.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime 

ADD dist /data/apps/dist

COPY entrypoint.sh /entrypoint.sh

COPY nginx.conf /etc/nginx/nginx.conf

RUN apk add nginx

ENTRYPOINT ["sh","/entrypoint.sh"]

EXPOSE 80
